You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'month']; ?>-01 00:00:00' AND '2011--31 00:00:00'' at line 1